package calculator.operator;


public class PowerOperator implements Operator {

    public double doCal(double num1, double num2) {
        return Math.pow(num2,num1);
    }


    public String toString() {
        return "^";
    }


    public int getPriority() {
        return Priority.PRIORITY_MID;
    }

    @Override
    public boolean support(char c) {
        return c == '^';
    }
}
